package com.sc.smartcommunity.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.smartcommunity.domain.Repair;
import com.sc.smartcommunity.mapper.RepairMapper;
import com.sc.smartcommunity.service.RepairService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RepairServiceImpl extends ServiceImpl<RepairMapper, Repair> implements RepairService {

    @Override
    public boolean addRepair(Repair repair) {
        // 设置初始状态为待处理
        repair.setStatus(0);
        return save(repair);
    }

    @Override
    public List<Repair> findAllRepairs() {
        return list();
    }


}
